<template>
  <div class="mPanel_con">
    <!-- <router-view></router-view> -->

    <el-tabs v-model="sActiveName" @tab-click="handleClick">
      <el-tab-pane label="A股涨跌" name="sAGuUD">
        <sRankCommon/>
      </el-tab-pane>
      <el-tab-pane label="B股涨跌" name="sBGuUD">
        <sRankCommon/>
      </el-tab-pane>
      <el-tab-pane label="科创板涨跌" name="sKeChuangUD">
        <sRankCommon/>
      </el-tab-pane>
      <el-tab-pane label="中小板涨跌" name="sZhongxiaoBanUD">
        <sRankCommon/>
      </el-tab-pane>
      <el-tab-pane label="创业板涨跌" name="sChuangyeBanUD">
        <sRankCommon/>
      </el-tab-pane>
    </el-tabs>
    </div>
</template>

<script>
import sRankCommon from './sRankCommon.vue'
export default {
  data() {
    return {
      sActiveName:'sAGuUD',
    }
  },
  methods: {
    handleClick(){
      console.log(this.activeName);
      /* if(this.activeName=="mIndustryUD"){
        this.$store.commit('setmIndustryData')
      }else if(this.activeName=="mConceptUD"){
        this.$store.commit('setmConceptData')
      }else if(this.activeName=="mAreaUD"){
        this.$store.commit('setmAreaData')
      } */
    }
    /* getHSIndex(){
      jsonp('http://api.money.126.net/data/feed/RANK_SC_PLATE_HANGYE_ALL,RANK_SC_PLATE_HANGYE_UP,RANK_SC_PLATE_HANGYE_DOWN,RANK_SC_PLATE_GAINIAN_ALL,0000001,1399001,1399300,HSRANK_COUNT_SHA,HSRANK_COUNT_SZA,HSRANK_COUNT_SH3,RANK_SC_PLATE_GAINIAN_UP,RANK_SC_PLATE_GAINIAN_DOWN,RANK_SC_PLATE_DIYU_UP,RANK_SC_PLATE_DIYU_DOWN,RANK_AUP,RANK_A5MINUP,RANK_ADOWN,RANK_A5MINDOWN,RANK_ATURNOVERUP,RANK_AHSUP,RANK_AVOLUMECHGUP,RANK_AZFUP,RANK_KCBUP,RANK_KCB5MINUP,RANK_KCBDOWN,RANK_KCB5MINDOWN,RANK_KCBCJL,RANK_KCBHS,RANK_KCBLB,RANK_KCBZF,RANK_ZXBUP,RANK_ZXB5MINUP,RANK_ZXBDOWN,RANK_ZXB5MINDOWN,RANK_ZXBCJL,RANK_ZXBHS,RANK_ZXBLB,RANK_ZXBZF,RANK_CYBUP,RANK_CYB5MINUP,RANK_CYBDOWN,RANK_CYB5MINDOWN,RANK_CYBCJL,RANK_CYBHS,RANK_CYBLB,RANK_CYBZF,RANK_BUP,RANK_B5MINUP,RANK_BDOWN,RANK_B5MINDOWN,RANK_BTURNOVERUP,RANK_BHSUP,RANK_BVOLUMECHGUP,RANK_BZFUP,TING_PAI_TI_SHI_RANK,XIN_GU_SHANG_SHI_RANK,XIAN_SHOU_JIE_JIN_RANK,FEN_HONG_SONG_GU_RANK,RANK_SC_GONG_GAO',{},(err,res)=>{
        if(!err){
          console.log(res);
          this.szzsData=res['0000001'];
          console.log(this.szzsData);
          this.szczData=res['1399001'];
          console.log(this.szczData);
          this.hs300Data=res['1399300'];
          console.log(this.hs300Data);
        }
      });
    } */
  },
  mounted:function () {
    this.$store.dispatch('getHSMain')
    // this.$store.commit('setmIndustryData')
    // this.handleClick()
  },
  components:{
    sRankCommon
  }
}
</script>

<style>

</style>
